package com.yunchang.springboot.models.log;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author sjd
 * @since 2020-08-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("base_mws_report_log")
@ApiModel(value="BaseMwsReportLogDO对象", description="mws报告拉取日志记录")
public class BaseMwsReportLogDO extends Model<BaseMwsReportLogDO> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "父id")
    private Long parentId;

    @ApiModelProperty(value = "报告信息的id")
    private Integer reportInfoId;

    @ApiModelProperty(value = "卖家id")
    private String sellerId;

    @ApiModelProperty(value = "大区或国家")
    private String countryCode;

    @ApiModelProperty(value = "报告类型.参考mws接口中定义的类型枚举值")
    private String reportType;

    @ApiModelProperty(value = "唯一的报告请求标识符")
    private String reportRequestId;

    @ApiModelProperty(value = "报告的处理状态")
    private String reportProcessingStatus;

    @ApiModelProperty(value = "初始生成的用于检索报告的报告标识符")
    private String generatedReportId;

    @ApiModelProperty(value = "用于检索报告的报告标识符")
    private String reportId;

    private Integer xmlStatus;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "报告开始时间")
    private String startDate;

    @ApiModelProperty(value = "报告结束时间")
    private String endDate;

    @ApiModelProperty(value = "获取报告方式 1：第一次获取 2：获取历史报告 3：错误报告重新获取")
    private Integer accessMethod;

    @ApiModelProperty(value = "处理状态 0：处理失败 1：处理完成")
    private Integer handleStatus;

    @ApiModelProperty(value = "记录创建时间")
    private String createTime;

    @ApiModelProperty(value = "记录修改时间")
    private String modifyTime;

    @ApiModelProperty(value = "是否删除  0：未删除 1：删除  默认0")
    private Integer isDelete;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
